package org.example.aienglishapp_login.entity.notification;

import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

/**
 * @author Asus
 * @version 1.0
 * @since 2024/12/18 16:49
 */
@Setter
@Getter
public class Notification {

    private Long id;
    private String message;
    private Timestamp createdAt;
    private String isRead;

    public Notification() {
        this.createdAt = new Timestamp(System.currentTimeMillis());
        this.isRead = "N";
    }

    public Notification(String message) {
        this.message = message;
        this.createdAt = new Timestamp(System.currentTimeMillis());
        this.isRead = "N";
    }

}